﻿/* using System.Xml.Serialization;
using System.IO; 




 public List<Speech> SpeechesWebProxy()
        
            List<Speech> olistaWystapien = new List<Speech>();
            int nCounter = 0;
            olistaWystapien.Add(new Speech(++nCounter, "coś tam")); <----------- tutaj poprawić 
            XmlRootAtribute oRootAttr = new XmlRootAttribute();
            oRootAttr.ElementName = "Speech";
            oRootAttr.IsNullable = true;
            XmlSerializer oSerializer = new XmlSerializer(typeof(List<Speech>), oRootAttr);
            StreamWriter oStreamWriter = null;
            try
            {
                oStreamWriter = new StreamWriter ("Speech.xml" );
                oSerializer.Serialize(oStreamWriter. olistaWystapien); 
            }
            catch (Exception oException)
            {
                Console.WriteLine("Błąd: " + oException.Message);
            }
            finally
            {
                if (null != oStreamWriter)
                {
                    oStreamWriter.Dispose();
                }
              
            }
*/